import { CoolController, BaseController } from '@cool-midway/core';
import { BannerEntity } from '../../entity/banner';

/**
 * 轮播图
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: BannerEntity,
  pageQueryOp: {
    fieldEq: ['status', 'type'],
    keyWordLikeFields: ['title'],
    addOrderBy: {
      id: 'asc'
    }
  },
})
export class BannerController extends BaseController { }
